﻿<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8"><meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="style/jquery-1.9.1.min.js"></script>
<script src="style/wpo_alog_speed.js"></script>
<script src="style/alog.js"></script>
<title>{$INI['system']['abbreviation']}</title>
<link rel="stylesheet" type="text/css" href="style/list_css_0_6f15796.css"/>
<link rel="stylesheet" type="text/css" href="style/common_css_0_6c6ef1d.css"/>
<link rel="stylesheet" type="text/css" href="style/common_css_1_ad94b5d.css"/>
</head>
<body mon="position=index">
<!--{include m_header}-->
<!--{include wap_headers}-->
<article class="p-index" mon="action=click" id="j-index">
<section class="w-index-search">
<form method="get" action="search.php" class="j-search-form">
<div class="search-input-wrap">
<input name="searchName" class="j-search-input" autocomplete="off" placeholder="请输入您想找的产品" type="text">
<i id="j-clear-input"></i>
<button type="submit" class="j-search-submit">搜索</button>
</div>
<div class="j-search-suggestion search-suggestion"></div></form>
</section>

<section>
<script src="/static/js/banner.js" type="text/javascript"></script>
<style type="text/css">
.mybanner{height:100px;overflow:hidden;font-size:0;z-index:0;width:100%;float:left;}
.num {bottom:5px;position: absolute;right: 44%;}
.num li{background:#FFFFFF;cursor:pointer;float:left;height: 8px;border-radius:8px;overflow:hidden;width:8px;opacity:0.6;margin-right:6px;}
.num li.on {background:#48D9CF;height:8px;border-radius:8px;width: 8px;opacity:0.6;}
</style>
<!-- 广告位：触屏版头部通栏 -->
<!--{if $banners}-->
<div style="padding:0px;width:100%;height:100px;">
        <div id="idTransformView" class="mybanner" style="overflow: hidden; position: relative;">
        <ul id="idSlider" class="slider">
				<!--{loop $banners $banner}-->
                <li style="position: absolute; z-index: 0; width:100%;opacity: 0;"><a href="{$banner['custom']}"><img src="${team_image($banner['image'])}" width="100%" height="100"></a></li>
				<!--{/loop}-->
			</ul>
            <ul id="idNum" class="num" style="z-index: 1;">
				<!--{loop $banners $index $banner}-->
                <li ${!$index?'class="on"':''}><!--${++$index}--></li>
				<!--{/loop}-->
            </ul>
        </div>
</div>
<!--{/if}-->
</section>


<section class="widget-index-catg clearfix" mon="type=catg">
	<!--nav begin-->	
	<div class="index-page" mon="position=index">	
		<link rel="stylesheet" href="/wap/css/common.css">
		<link rel="stylesheet" href="/wap/css/index.css">
		<script charset="utf-8" defer="" src="/wap/js/common.js"></script>
		<script charset="utf-8" defer="" src="/wap/js/index.js"></script>
		<script>
		window.F = (function () {
		var b = {};
		return {
		context: function(p, r) {
		var q = arguments.length;
		if (q > 1) {
		b[p] = r
		} else {
		if (q == 1) {
		if (typeof p == "object") {
		for (var o in p) {
		if (p.hasOwnProperty(o)) {
		b[o] = p[o]
		}
		}
		} else {
		return b[p];
		}
		}
		}
		}
		}
		})();
		</script>
		<script>
		// 当前页面标识信息
		F.context('page-info', {
		name: 'index'
		});
		// 小流量平台命中信息
		F.context('hit', '');
		// 小流量平台统计字段
		F.context('log-info-ext', []);
		</script>
		<script>
		F.context('urls', {
		logout: "0"});
		F.context('sync', 1);
		F.context('ad-bottom', {
		data: null,
		isShow: null});
		</script>
			
		<article class="main-content" mon="action=click">
			<section id="index-search-wrapper"></section>
			
			<section class="index-catg" mon="area=class">
				
				<ul id="catg-wraps" class="wraps" style="visibility: visible;">
					<li class="wrap wrap8">						
						<!--{loop $category $index $one}-->
						<!--{if $index>6}-->
						<a class="item item{$index}" href="/wap/category.php?<!--{if $one['fid']>0}-->gid={$one['fid']}&fid_s={$one['id']}<!--{else}-->gid={$one['id']}<!--{/if}-->">
							<div class="img {$one['ename']}"></div>
							<div class="text">{$one['name']}</div>
						</a>
						<!--{/if}-->
						<!--{/loop}-->	
					</li>
						
					<li class="wrap wrap8">
						<!--{loop $category $index $one}-->
						<!--{if $index<7}-->
						<a class="item item{$index}" href="/wap/category.php?<!--{if $one['fid']>0}-->gid={$one['fid']}&fid_s={$one['id']}<!--{else}-->gid={$one['id']}<!--{/if}-->">
							<div class="img {$one['ename']}"></div>
							<div class="text">{$one['name']}</div>
						</a>
						<!--{/if}-->
						<!--{/loop}-->
						<a class="item" href="/wap/category.php">
							<div class="img more"></div>
							<div class="text">更多分类</div>
						</a>
					</li>
				</ul>
				<div id="catg-pointers" class="pointers"></div>
				
			</section>
		</article>
	</div>
	<!--nav end-->
</section>

<!--<section class="goods-list-title">名店抢购</section>
<section class="goods-list-title">限时抢购<a href="seconds.php" style="float:right; padding-right:10px;">更多>></a></section> -->
<div id="j-goods-container">
<!--{loop $teams $team}-->
    <!--{if $team}--> 
<section class="w-goods " mon="action=click&amp;type=item">
 <a href="team.php?id={$team['id']}" mon="query=&amp;page_catg=0&amp;nuomi_order=0&amp;content=item0&amp;dealTinyUrl=swdbwplc&amp;deal_id=964894&amp;nuomi_index=0&amp;pageindex=0" class="clearfix" name="0" id="0">
 <div class="img-wrapper">
 <span class="tag-free-reservation"></span>
 <img style="visibility: visible;" src="${team_image($team['image'], true)}" height="79" width="118">
 </div>
 <ul>
 <li class="title"><span class="store "></span>
 <span class="item-name">{$team['title']}</span>
 </li>
 <li class="info">【${get_partner_name($team['partner_id'])}】</li>
 <li class="others"><ins style="font-family:'微软雅黑';">${moneyit($team['team_price'])}<b style="font-family:'宋体';font-size:12px;font-weight:normal;font-family:'宋体';">元</b></ins><span class="slash">/</span>
 <del class="old-price">${moneyit($team['market_price'])}<b style="font-family:'宋体';font-size:12px;font-weight:normal;font-family:'宋体';">元</b></del>
 <span class="bought">已售{$team['now_number']}</span>
 </li>
 </ul>
 </a>
 </section>
    <!--{/if}--> 
<!--{/loop}-->
</div>
</section>

<table style=" width:100%;margin:0 auto;background:#ffffff;margin-top:6px;" cellspacing=0 cellpadding=0>
<!--中间第一排-->
<!--{if $wapones}-->
 <tr >
	<!--{loop $wapones $wapone}-->
   
                <td style="margin:0;border: 1px solid #e0e0e0;width:50%;"><a href="{$wapone['custom']}"><img src="${team_image($wapone['image'])}" width="100%" height="100%" border="0"/></a></td>			

    <!--{/loop}-->
		</tr>
	<!--{/if}-->
	<!--中间第二排-->
	
	<!--{if $waptwos}-->
	 <tr >
	<!--{loop $waptwos $waptwo}-->
   
                <td  style="margin:0;border: 1px solid #e0e0e0;width:50%;" ><a href="{$waptwo['custom']}"><img src="${team_image($waptwo['image'])}" width="100%" height="100%" border="0" /></a></td>			

    <!--{/loop}-->
		</tr>
	<!--{/if}-->
</table>

<section class="goods-list-title">猜你喜欢<a href="category.php" style="float:right;color:#555;padding-right:10px;">更多&gt;</a></section>
<div id="j-goods-container" style="padding-bottom:27px">
<!--{loop $teamss $team}-->
    <!--{if $team}--> 
<section class="w-goods " mon="action=click&amp;type=item">
 <a href="team.php?id={$team['id']}" mon="query=&amp;page_catg=0&amp;nuomi_order=0&amp;content=item0&amp;dealTinyUrl=swdbwplc&amp;deal_id=964894&amp;nuomi_index=0&amp;pageindex=0" class="clearfix" name="0" id="0">
 <div class="img-wrapper">
 <span class="tag-free-reservation"></span>
 <img style="visibility: visible;" src="${team_image($team['image'], true)}" height="79" width="118">
 </div>
 <ul>
 <li class="title"><span class="store "></span>
 <span class="item-name">{$team['title']}</span>
 </li>
 <li class="info">【${get_partner_name($team['partner_id'])}】</li>
 <li class="others"><ins style="font-family:'微软雅黑';">${moneyit($team['team_price'])}<b style="font-family:'宋体';font-size:12px;font-weight:normal;font-family:'宋体';">元</b></ins><span class="slash">/</span>
 <del class="old-price">${moneyit($team['market_price'])}<b style="font-family:'宋体';font-size:12px;font-weight:normal;font-family:'宋体';">元</b></del>
 <span class="bought">已售{$team['now_number']}</span>
 </li>
 </ul>
 </a>
 </section>
    <!--{/if}--> 
<!--{/loop}-->
</div>
</section>
</article>

<input type="hidden" id="nowlat" name="nowlat" value="{$_SESSION['mylat']}" />
<input type="hidden" id="nowlng" name="nowlng" value="{$_SESSION['mylng']}" />
<!--{include wap_footer}-->
<!--获取地图位置信息，计算距离-->
<script>
//1、getCurrentPosition //当前位置 
//2、watchPosition //监视位置 
//3、clearWatch //清除监视 
var lat;
var lon;
var nowlat=$("#nowlat").val();
var nowlng=$("#nowlng").val();
if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(showPosition,showError,{
        // 指示浏览器获取高精度的位置，默认为false
        enableHighAcuracy: true,
        // 指定获取地理位置的超时时间，默认不限时，单位为毫秒
        timeout: 5000,
        // 最长有效期，在重复获取地理位置时，此参数指定多久再次获取位置。
        maximumAge: 3000
    });
	
} else {
	alert('您的浏览器不支持地理位置');
}
function showPosition(position)
  {
	  lat=position.coords.latitude;
	  lon=position.coords.longitude;
	  if(!nowlat && !nowlng){
		  window.location.href="/wap/index.php?lat="+lat+"&lon="+lon;
	  	}
  }

function showError(error)
  {
  switch(error.code) 
    {
    case error.PERMISSION_DENIED:
//    alert("User denied the request for Geolocation.");
      break;
    case error.POSITION_UNAVAILABLE:
//    alert("Location information is unavailable.");
      break;
    case error.TIMEOUT:
//    alert("The request to get user location timed out.");
      break;
    case error.UNKNOWN_ERROR:
//    alert("An unknown error occurred.");
      break;
    }
  }
</script>
</body>
</html>
